-- GENERATED SPELL FOR [Weapon Technician] --


function spell0_8920(pUnit, Event) --@Exploding Shot,n/a--
pUnit:FullCastSpellOnTarget(7896,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8920', 1000, 1)
end

function spell1_8920(pUnit, Event) --@Frost Shot,n/a--
pUnit:FullCastSpellOnTarget(12551,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8920', 10308, 1)
end

function spell2_8920(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(14443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8920', 600, 1)
end

function spell3_8920(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8920', 604, 1)
end

function Sorts_8920(pUnit, Event)
local choix_sorts_8920 = math.random(0, 3)
if choix_sorts_8920 == 0 then
pUnit:RegisterEvent('spell0_8920', 1, 1)
end
if choix_sorts_8920 == 1 then
pUnit:RegisterEvent('spell1_8920', 1, 1)
end
if choix_sorts_8920 == 2 then
pUnit:RegisterEvent('spell2_8920', 1, 1)
end
if choix_sorts_8920 == 3 then
pUnit:RegisterEvent('spell3_8920', 1, 1)
end
end

function mob8920_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8920', math.random(1500, 3000), 1)
end

function mob8920_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8920_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8920_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8920, 1, 'mob8920_Action')
RegisterUnitEvent(8920, 2, 'mob8920_Leave')
RegisterUnitEvent(8920, 3, 'mob8920_Kill')
RegisterUnitEvent(8920, 4, 'mob8920_Die')
